home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2000 #5
/
Amiga Plus CD - 2000 - No. 5.iso
/
Tools
/
Misc
/
FLM
/
otherfiles
/
english
/
ARexx
/
look.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-01-01
|
1KB
|
29 lines
/* This script send a word to FLM:
As a result FLM opens the FLM ARexx Window */
/* Here indicate, please, the FLM path and program name */
initiation=run "dh0:FLM/FLM"
Options RESULTS /* To receive a return result too */
IF ~show('P','FLM') THEN DO
/* if FLM is not yet running */
ADDRESS COMMAND initiation
/* Wait until FLM is started... */
ADDRESS COMMAND "SYS:RexxC/WaitForPort FLM"
END
RESULT='go'
/* Here the word "go" is written in variable RESULT. This line must be
changed to be able for example to send the word under the cursor to FLM.
When e.g. the ARexx command name in your editor/word processor is
"GetWord", here you should have "Address <adr> GetWord". For <adr> you
must indicate the ARexx address of program that you can find in your
program's manual.
Normally, it's also possible to drop 'Address' + 'Program address port'.
Then e.g. you should write only "GetWort".
*/
Address FLM LOOKWORD RESULT /* Send word, which is in Variable RESULT, to FLM*/